package com.probox.common.core.enums;

public enum SubscribeStatusEnum {
    ToBeServed("0", "待服务"),
    StartService("1", "服务中"),
    EndService("2", "完成服务"),
    ServiceRecord("3", "上传服务"),
    ReceivingServices("4", "接受服务"),
    BreaksAnAppointment("99", "爽约"),
    close("100", "服务取消");

    private SubscribeStatusEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for (SubscribeStatusEnum oe : SubscribeStatusEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
